#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int f(int n)
{
	int t = 0, a = 5;
	if (n / 2)
	{
		int a = 6;
		t += a++;
	}
	else
	{
		int a = 7;
		t += a++;
	}
	return t + a++;
}
int main()
{
	int s = 0, i = 0;
	for (; i < 2; i++)
		s += f(i);
	printf("%d\n", s);
	return 0;
}